package com.asset.salesforce.service;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.asset.salesforce.dao.ViewFiledsDaoImpl;
import com.asset.salesforce.domain.ViewFields;

@Service
@Transactional(readOnly=true)
public class ViewFieldsService {

	@Autowired
	ViewFiledsDaoImpl viewFiledsDao;
	
	public List<ViewFields> getAll(){
		List<ViewFields> viewFields = viewFiledsDao.listViewFields();
		return  viewFields;
	}
	public ViewFields getViewFieldById(Integer Id ) {
		return viewFiledsDao.getViewFieldById(Id);
	}
}
